<?php

namespace App\Http\Controllers\MiniAPP;

use App\Http\Controllers\Controller;
use App\Http\Resources\MiniAPPMemberRechargeOptionResource;
use App\Models\MiniappMemberRechargeOption;
use Illuminate\Http\Request;

class MemberRechargeOptionController extends Controller
{
    public function getList()
    {
        $options = MiniappMemberRechargeOption::orderBy('is_gift', 'desc')->orderBy('money', 'asc')->get();

        return MiniAPPMemberRechargeOptionResource::collection($options);
    }
}
